package com.indexingsystem.system.service;

import java.util.List;

import com.indexingsystem.boss.Vo.GamesReqVo;
import com.indexingsystem.boss.Vo.GamesTableVo;
import com.indexingsystem.boss.Vo.GamesVo;
import com.indexingsystem.boss.common.PagedResult;
import com.indexingsystem.boss.entity.AuditLogs;
import com.indexingsystem.boss.entity.DhTodayStorageInfos;
import com.indexingsystem.boss.entity.Games;

public interface IGamesService {
	
	/**
	 * 通过id删除游戏
	 * 
	 * @param resId
	 * @return
	 */
	int deleteByPrimaryKey(String resId) throws Exception;

	int deleteGamesByIdBatch(List<String> resIdList) throws Exception;

	/**
	 * 新增游戏信息
	 * 
	 * @param record
	 * @return
	 */
	int insertSelective(Games record) throws Exception;

	/**
	 * 分页查询游戏信息
	 * 
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	PagedResult<GamesTableVo> selectGamesList(GamesVo record);

	/**
	 * 通过id查询游戏信息
	 * 
	 * @param resId
	 * @return
	 */
	Games selectByPrimaryKey(String resId);

	/**
	 * 修改游戏信息
	 * 
	 * @param record
	 * @return
	 */
	int updateByPrimaryKeySelective(Games record) throws Exception;

	/**
	 * 获取总数量
	 * 
	 * @param record
	 * @return
	 */
	Integer getGamesListCount(GamesVo record);

	/**
	 * 新增游戏信息
	 * 
	 * @param record
	 * @return
	 */
	int addGamesInfo(GamesReqVo record, AuditLogs auditLogs, DhTodayStorageInfos dhTodayStorageInfos) throws Exception;

	/**
	 * 修改游戏信息
	 * 
	 * @param record
	 * @return
	 */
	int updateGamesInfo(GamesReqVo record) throws Exception;
}